<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumnsToRechareOrder extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('recharge_order',function(Blueprint $table){
            $table->tinyInteger('order_type')->comment('订单类型 1 充值 2 代充值')->default(0)->after('total_amount');
            $table->tinyInteger('pay_channel')->comment('支付类型 wx 微信 2 ali 支付宝 3 union 银联')->default(0)->after('total_amount');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
